<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<form id ="clientForm" method ="post" action="rest/client/edit">
<fieldset>
<input type="hidden" name="id" id="id" class='data-field'>
<div class="control-group form-field clearfix">
	<label for="name"> 名称<span style="color:#b94a48;"> *</span></label>
	<div class="input">
		<input type="text" name="name"  id="name" class="data-field">
	</div>
</div>
<div class="control-group form-field clearfix new-remove">
	<label for="clientId"> Client Id</label>
	<div class="input">
		<span style="margin-bottom: 9px;display:block;" type="text" name="clientId"  id="clientId" class="data-field">
	</div>
</div>
<div class="control-group form-field clearfix new-remove">
	<label for="clientSecret"> Client Secret</label>
	<div class="input">
		<span style="margin-bottom: 9px;display:block;" type="text" name="clientSecret"  id="clientSecret" class="data-field">
	</div>
</div>
<div class="control-group form-field clearfix">
	<label for="scope"> 资源范围</label>
	<div class="input">
		<input type="text" name="scope"  id="scope" class="data-field">
	</div>
</div>
<div class="control-group form-field clearfix">
	<label for="redirectUri"> Redirect Url</label>
	<div class="input">
		<input type="text" name="redirectUri"  id="redirectUri" class="data-field">
	</div>
</div>
<div class="control-group form-field clearfix">
	<label for="grantTypes"> Grant Types </label>
	<div class="input">
		<span class="col-sm-6" style="padding-left: 0;"><input name="grantTypes" type="checkbox" class="data-field" value="authorization_code" /> authorization_code</span> 
		<span class="col-sm-6"><input name="grantTypes" type="checkbox" class="data-field" value="password" /> password</span>
		<span class="col-sm-6" style="padding-left: 0;"><input name="grantTypes" type="checkbox" class="data-field" value="client_credentials" /> client_credentials</span>
		<span class="col-sm-6"><input name="grantTypes" type="checkbox" class="data-field" value="refresh_token" /> refresh_token</span>
	</div>
</div>
<div class="control-group form-field clearfix ">
	<label for="description"> 描述 </label>
	<div class="input">
		<input type="text" name="description" id="description" class='data-field'>
	</div>
</div>
</fieldset>
</form>